<?php
// namespace demo;
/**
 *
 * @authors  Ysg (y.shi.guo@gmail.com)
 * @website  http://ysg.bonza.cn
 * @date     2017-07-24 11:43:02
 */

header("Content-type:text/html;charset:utf8;");

date_default_timezone_set('PRC');


/*$arr = require('config/config.php');
var_dump($arr);*/
/*
if(!filter_has_var(INPUT_GET, "name"))
{
	echo("Input type does not exist");
}
else
{
	echo("Input type exists");
}
*/
$filters = array
(
	"name" => array
	(
		"filter"=>FILTER_CALLBACK,
		"flags"=>FILTER_FORCE_ARRAY,
		"options"=>"ucwords"
		),
	"age" => array
	(
		"filter"=>FILTER_VALIDATE_INT,
		"options"=>array
		(
			"min_range"=>1,
			"max_range"=>120
			)
		),
	"email"=> FILTER_VALIDATE_EMAIL,
	);
print_r(filter_input_array(INPUT_POST, $filters));





